#define _CRT_SECURE_NO_WARNINGS 1
#include"string.h"

int main()
{
	//string s1("hello world");
	//cout << s1 << endl;
	//cout << s1.size() << endl;
	//cout << s1.capacity() << endl;
	//s1.resize(20);
	//cout << s1 << endl;
	//cout << s1.size() << endl;
	//cout << s1.capacity() << endl;

	//s1.resize(30);	
	//cout << s1 << endl;
	//cout << s1.size() << endl;
	//cout << s1.capacity() << endl;
	//s1.resize(10);
	//cout << s1 << endl;
	//cout << s1.size() << endl;
	//cout << s1.capacity() << endl;
	//s1.resize(5);
	//cout << s1 << endl;
	//cout << s1.size() << endl;
	//cout << s1.capacity() << endl;
	////s1.erase(2, 2);
	////s1.insert(5, " ld");
	//cout << s1 << endl;
	try
	{
		tmt::test_string();
	}
	catch (const exception& e)
	{
		cout << e.what() << endl;
	}
}